Package-level declarations

Data and enum classes used throughout the Digital Wallets SDK

Types

Link copied to clipboard
data class Address(val postalCode: String, val countryCode: String, val address1: String = "", val address2: String = "", val address3: String = "", val locality: String = "", val administrativeArea: String = "", val sortingCode: String = "") : Parcelable

Class to represent an address.

Link copied to clipboard

An enum representing card brands supported by Olo for Google Pay

Link copied to clipboard

Enum representing valid checkout option and price status combinations, as defined by Google.

Link copied to clipboard
data class Configuration @JvmOverloads constructor(val environment: SdkEnvironment, val gatewayParametersJson: String, val companyName: String, val companyCountryCode: String = "US", val currencyCode: String = "USD", val existingPaymentMethodRequired: Boolean = false, val emailRequired: Boolean = false, val phoneNumberRequired: Boolean = false, val fullNameRequired: Boolean = false, val fullBillingAddressRequired: Boolean = false, val allowedCardNetworks: List<CardType> = listOf( CardType.AmericanExpress, CardType.Discover, CardType.MasterCard, CardType.Visa )) : Parcelable

Configuration parameters required for setting up Google Pay

Link copied to clipboard

An enum representing types of Google Pay Errors

Link copied to clipboard

An enum representing different visual styles available for a Google Pay button. Values map directly to Google's ButtonTheme

Link copied to clipboard

An enum representing different types of Google Pay buttons that can be used. Values map directly to Google's ButtonType

Link copied to clipboard
data class LineItem(val label: String, val price: Long, val type: LineItemType, val status: LineItemStatus = LineItemStatus.Final) : Parcelable

Represents a line item to be displayed in the Google Pay sheet.

Link copied to clipboard

Represents the status of a line item

Link copied to clipboard

Represents the type of line item to be displayed in the Google Pay sheet.

Link copied to clipboard
data class PaymentData(val token: String, val description: String, val cardType: CardType, val oloCardTypeDescription: String, val cardDetails: String, val lastFour: String, val billingAddress: Address, val email: String = "", val fullName: String = "", val phoneNumber: String = "") : Parcelable

Class to represent Google Pay payment data

Link copied to clipboard
sealed class Result : Parcelable

Represents the result of launching a Google Pay sheet via GooglePayLauncher

Result.Completed will contain a PaymentData instance.
Result.Failed will contain a GooglePayException instance.
Result.Canceled indicates the user closed the Google Pay sheet

Link copied to clipboard

Enum for determining what environment Google Pay will use.